package com.cstz.ydshop.common.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cstz.ydshop.common.dao.CouponDao;
import com.cstz.ydshop.common.domain.CouponDO;
import com.cstz.ydshop.common.service.CouponService;

@Service
public class CouponServiceImpl implements CouponService {
	
	@Autowired
	private CouponDao couponMapper;

	@Override
	public CouponDO get(Integer id) {
		return couponMapper.get(id);
	}

	@Override
	public List<CouponDO> list(Map<String, Object> map) {
		return couponMapper.list(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		return couponMapper.count(map);
	}

	@Override
	public int save(CouponDO coupon) {
		return couponMapper.save(coupon);
	}

	@Override
	public int update(CouponDO coupon) {
		return couponMapper.update(coupon);
	}

	@Override
	public int remove(Integer id) {
		return couponMapper.remove(id);
	}

	@Override
	public int batchRemove(Integer[] ids) {
		return couponMapper.batchRemove(ids);
	}

}
